package main

import (
	"time"
	"fmt"
)

func main()  {

	//获取当前时间
	t1 := time.Now()
	fmt.Printf("%T\n", t1)
	fmt.Println(t1)

	//获取指定时间
	t2 := time.Date(2008, 05)


	//time--->string
	tstr := t1.Format("2018-05-29 ")
	fmt.Println(tstr)

}





